package com.cardgame.model.card;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

@Getter
@Setter // ✅ 添加 Setter 以支持 Jackson 反序列化字段
public class TotalWeaponCard extends Card implements ITotalWeaponCard {
    private Integer addHPMax;

    public TotalWeaponCard(Integer id, String name, String imageUrl, String introduction, Integer price, Integer cost,
            Integer addHPMax) {
        super(id, name, imageUrl, introduction, "total_weapon", price, cost);
        this.addHPMax = addHPMax;
    }

    public TotalWeaponCard() {
        super();
    }

    @Override
    public Map<String, Object> toMap() {
        Map<String, Object> map = super.toMap();
        map.put("addHPMax", addHPMax);
        return map;
    }
}